Type Void Is Not Assignable To Type This Globaleventhandlers

[Solved] Type Void Is Not Assignable To Type This Globaleventhandlers | Solidity - Code Explorer | yomemimo.com
Question : Type 'void' is not assignable to type '((this: GlobalEventHandlers, ev: MouseEvent) => any) | null'

Answered by : perfect-peccary-7rwc6szo99md

element.onclick=()=>this.yourFunction(parameter);

Source : https://stackoverflow.com/a/51977836/14579011 | Last Update : Tue, 16 Nov 21

Answers related to type void is not assignable to type this globaleventhandlers ev mouseevent = any | null

Code Explorer Popular Question For Solidity